<!-- <{include file="www/header.tpl"}>
<form action="" method="POST" name="create">
	<p>账户类型: <select name="accountType">
                    <option value="ALIPAY">支付宝</option>
                    <option value="PAYPAL">PAYPAL</option>
                </select>
        </p>
	<p>账户名:<input type="text" name="accountName"></p>
	<p>姓名: <input type="text" name="accountUserName"></p>

    <p>
        <input type="submit" name="submit1" value="创建">
    </p>
</form>
 -->

<h2 class="title">收款账户</h2>

<div class="shouk">
    <p class="prompt">声明：您的收款信息只用于哇吖平台之内，对外我们绝不泄露.</p>
    <p class="info">提示：若选择支付宝作为收款账户，结算金额会以当日人民币汇率为准</p>
</div>

<form action="" method="POST" name="create" class="shouk-box">
    <p class="prompt">选择收款账户类型</p>
    <div class="choose fix">
        <label class="pay">
            <input type="radio" name="accountType" value="ALIPAY" id="" class="radio">
            <img src="/resource/www/imgs/alipay_icon.png" style="width: 94px; height:32px;">
        </label>
        <label class="pay">
            <input type="radio" name="accountType" value="PAYPAL" id="" class="radio">
            <img src="/resource/www/imgs/paypal_icon.png" style="height:32px;">
        </label>
    </div>

    <label class="line">
        <span class="left">收款人</span>
        <input type="text" name="accountName" placeholder="例如：张三" class="right">
    </label>

    <label class="line">
        <span class="left">账户账号</span>
        <input type="text" name="accountUserName" placeholder="例如：info@wayatrip.com" class="right">
    </label>

    <input type="submit" value="确定" class="submit" style="margin-left:140px" onclick="return submit_bank();">
    <button type="button" class="submit" onclick="cancel_add()">取消</button>
</form>

<script>
function cancel_add() {
	location.href='/guider/bank_list';
}
function submit_bank() {
    if (!$("input:radio[name='accountType']").is(':checked')) {
        layer.msg('请选择你的收款账户');
        return false;
    }

    var oAccountName = $("input[name='accountName']").val();
    if (!$.trim(oAccountName)) {
        layer.msg('请输入账户名称');
        return false;
    }

    var oAccountUserName = $("input[name='accountUserName']").val();
    if (!$.trim(oAccountUserName)) {
        layer.msg('请输入您的账户');
        return false;
    }
}

</script>
